package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 用户任务对象 t_user_task
 *
 * @author ruoyi
 * @date 2023-10-31
 */
@TableName("t_user_task")
@Data
public class UserTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 0待完成，1已完成、2已过期 */
    @Excel(name = "0待完成，1已完成、2已过期")
    private String status;

    /** 接受时间 */
    @Excel(name = "接受时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date getTime;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @TableField(exist = false)
    private String userName;

    private String taskName;

    /** 主健 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String taskType;

    private String title;


    private String backUrl;


    private String subTitle;

    @TableField(exist = false)
    private String times;

    private String petValue;

    private String gameValue;

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setGetTime(Date getTime)
    {
        this.getTime = getTime;
    }

    public Date getGetTime()
    {
        return getTime;
    }
    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("status", getStatus())
            .append("getTime", getGetTime())
            .append("taskId", getTaskId())
            .append("userId", getUserId())
            .append("id", getId())
            .toString();
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBackUrl() {
        return backUrl;
    }

    public void setBackUrl(String backUrl) {
        this.backUrl = backUrl;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getPetValue() {
        return petValue;
    }

    public void setPetValue(String petValue) {
        this.petValue = petValue;
    }

    public String getGameValue() {
        return gameValue;
    }

    public void setGameValue(String gameValue) {
        this.gameValue = gameValue;
    }
}
